const state = {
  userName: '',
  agencyId: ''
}
const mutations = {
  SET_USER_NAME(state, name) {
    state.userName = name
  },
  SET_AGENCY_ID(state, agencyId) {
    state.agencyId = agencyId
  }
}

const actions = {
  // 设置name
  setUserName({ commit }, name) {
    commit('SET_USER_NAME', name)
  },
  setAgencyId({ commit }, agencyId) {
    commit('SET_AGENCY_ID', agencyId)
  }
}
export default {
  state,
  mutations,
  actions
}
